package com.czxy.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 招聘信息表
 * </p>
 *
 * @author xuewen
 * @since 2022-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbRecruitmentInfo对象", description="招聘信息表")
public class TbRecruitmentInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "招聘信息描述")
    @TableField(value = "`desc`")
    private String desc;

    @ApiModelProperty(value = "企业id")
    private Integer enterpriseId;

    @ApiModelProperty(value = "工资")
    private Integer maxSalary;

    private String addressId;

    @ApiModelProperty(value = "职业类型")
    private Integer occupationId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "工作地址")
    private String workAddress;

    @ApiModelProperty(value = "福利  这是个福利id集合")
    private String welfareIds;

    @ApiModelProperty(value = "最小工资")
    private Integer minSalary;

    @ApiModelProperty(value = "需要人数")
    private Integer peopleNum;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @TableField(exist = false)
    private List<TbWelfare> welfares;

    @TableField(exist = false)
    private TbOccupation tbOccupation;

    @TableField(exist = false)
    private TbCity tbCity;

    @TableField(exist = false)
    private TbEnterprise tbEnterprise;

}
